package com.ss.android.article.base.feature.detail.model;

import org.json.JSONObject;

public final class MixedAdsData extends g {
    public String d;
    public int e;
    public int f;
    public int g;
    public String h;
    public String i;
    public String j;
    public int k;
    public int l;
    public int m;
    public String n;
    public String o;
    public boolean p;
    private JSONObject q;

    public MixedAdsData() {
        super(3);
        this.p = false;
    }

    public final void initWithJO(JSONObject jo) {
        if (jo != null) {
            super.initWithJO(jo);
            this.d = jo.optString("image");
            this.e = jo.optInt("image_width");
            this.f = jo.optInt("image_height");
            this.g = jo.optInt("display_subtype", 3);
            jo.optString("description");
            this.h = jo.optString("label", "");
            this.i = jo.optString("source_name", "");
            this.q = jo.optJSONObject("video_info");
            this.j = jo.optString("title");
            this.p = jo.optBoolean("is_tongtou_ad");
            if (this.q == null) {
                return;
            }

            try {
                this.k = this.q.optInt("width");
                this.l = this.q.optInt("height");
                this.m = this.q.optInt("video_duration");
                this.n = this.q.optString("video_id");
                this.o = this.q.optString("cover_url");
            } catch (Exception exception) {
                exception.printStackTrace();
            }
        }
    }
}

